﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Administrator
{
    public partial class fProgress : Form
    {
        public Boolean InProgress = false;

        public fProgress()
        {
            InitializeComponent();
        }
        private void fProgress_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = InProgress;
        }
        private void fProgress_Load(object sender, EventArgs e)
        {
            if (cMain.MainWindow != null)
            {
                this.Top = cMain.MainWindow.Top + (Int32)(cMain.MainWindow.Height / 2) - (Int32)(this.Height / 2);
                this.Left = cMain.MainWindow.Left + (Int32)(cMain.MainWindow.Width / 2) - (Int32)(this.Width / 2);
            }
        }
    }
}
